package com.lzclass.util;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class ServiceUtil {



    public static Object getService(String name){

        ApplicationContext applicationContext = new ClassPathXmlApplicationContext("applicatContext.xml");
        return applicationContext.getBean(name);
    }



}
